package com.example.a2032.net;



import java.util.Map;

import io.reactivex.Observable;
import okhttp3.ResponseBody;
import retrofit2.http.GET;
import retrofit2.http.QueryMap;
import retrofit2.http.Streaming;
import retrofit2.http.Url;


/**
 * Created by Administrator on 2017/3/24.
 */

public interface JstyleApi {

    String baseurl="https://app.le-young.com/";

    @GET("http://api.le-young.com/device/firmware/v2/update")
    Observable<FirmwareUpdateData> queryDeviceVersion(@QueryMap Map<String, String> versionMap);

    @Streaming
    @GET
    Observable<ResponseBody> downloadPath(@Url String url);
}
